package com.woniuxy.dudugua.controller;

import com.woniuxy.dudugua.service.FoodService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.woniuxy.dudugua.util.Result;

import javax.annotation.Resource;

/**
 * @author JadeFang
 * @Deprecated   专业馆
 */
@RestController
public class FoodController {
    @Resource
    private FoodService  foodService;
    @RequestMapping("food")
    public  Result  selectByProductFood() throws Exception{
        return  new Result("200","success",null,foodService.selectByProductFood());
    }

    @RequestMapping("foodIdSon")
    public  Result  selectByProductFoodIdSon() throws Exception{
        return  new Result("200","success",null,foodService.selectByProductFoodIdSon());
    }
}
